package com.surprise.bweb.vo;

import com.surprise.db.entity.SurpriseProduct;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * SurpriseProductVO.java
 * @author xuling
 * @since 2017年9月28日
**/
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class SurpriseProductVO {
	public static int i = 0;
	protected Long id;
    private String productName = "";
    private String introduction = "";
    private Long surpriseShopId;
    private String productUrl = "";
    private int amount = 0;
    private String pic = "";
    private String qrcode = "";
    private String surpriseShopName = "";
    
    public SurpriseProductVO(SurpriseProduct po) {
        this.setId(po.getId());
        this.setProductName(po.getProductName());
        this.setIntroduction(po.getIntroduction());
        this.setSurpriseShopId(po.getSurpriseShopId());
        this.setProductUrl(po.getProductUrl());
        this.setAmount(po.getAmount());
        this.setPic(po.getPic());
        this.setQrcode(po.getQrcode());
    }
}
